package com.chooseHeader
{
	import com.glasses.func.GlassesFunc;
	
	import flash.display.Bitmap;
	import flash.events.MouseEvent;

	public class GetVadioPicFunc
	{
		private static var gvps:GetVadioPic;
		/**
		 * 加载数据 
		 * @param gvp
		 * 
		 */
		public static function initData(gvp:GetVadioPic):void{
			gvps=gvp;
		}
		/**
		 * 显示图片 
		 * @param evt
		 * @param data
		 * 
		 */
		public static function chooseImage(evt:MouseEvent):void{
			//给调整页面的图片赋予数据
			var bitmap:Bitmap=evt.currentTarget.content as Bitmap;
			//获取位图副本
			GlassesFunc.setAdjustHeaderImageData(bitmap.bitmapData.clone());
			GlassesFunc.ms.adjust.enabled=true;
			GlassesFunc.selBoxIndex(1);
		}
	}
}